<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assets/css/admin/stickytooltip.css" />
<script type="text/javascript" src="<?= base_url(); ?>assets/js/admin/stickytooltip.js"></script>
<script src="<?= base_url(); ?>third_party/ckeditor/ckeditor.js"></script>
<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Mass Email</a>
        </h2>
        <div class="block" >
            <form name="banner" method="POST" action="<?= base_url(); ?>admin/newsletter/send/">
                <fieldset>
                    <legend>New News Letter: </legend>
                    <div class="field" >
                        <?php if ($this->session->flashdata('message')) { ?>
                            <div id="red"> <?= $this->session->flashdata('message'); ?></div>
                        <?php } ?>
                    </div>
                    <div class="field" style="float:left">
                        <label>Subject</label>
                        <?php echo form_error('title'); ?>
                        <input name="title" type ="text" size="62" value="<?php echo set_value('title'); ?>" />
                    </div>
                    <div class="field" style="float:left; width: 99%">
                        <label> Description</label>
                         <?php echo form_error('email_description'); ?>
                        <textarea id="email_details" name="email_description"></textarea>
                        <script type="text/javascript">
                            CKEDITOR.replace( 'email_details',
                            {
                                skin : 'v2',
                                enterMode : CKEDITOR.ENTER_BR,
                               
                                toolbar :
                                    [
                                    [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
                                    [ 'UIColor' ]
                                ]

                            });
                        </script>
                    </div> 
                    <div class="clearfix"></div>
                    </br>
                    <div class="field" style="float:left">
                        <input type="submit" value="Send Email" name="email_send"/>
                    </div>
                </fieldset>
            </form>
        </div>
    </div> <!-- END OF BOX -->
</div>